ostbuild: Add --recompose argument
authorColin Walters <walters@verbum.org>
Thu, 16 Feb 2012 23:30:42 +0000 (18:30 -0500)
committerColin Walters <walters@verbum.org>
Thu, 16 Feb 2012 23:30:42 +0000 (18:30 -0500)
This is necessary to run after rebuilding the Yocto base.

src/ostbuild/pyostbuild/builtin_build.py

index b287ad21716b64abf104e684d9d9cfe75335a526..21c7f4e70e3686b1b282e5064f9f9bb6cf6a64c5 100755 (executable)
@@ -269,6 +269,7 @@ class OstbuildBuild(builtins.Builtin):
     def execute(self, argv):
         parser = argparse.ArgumentParser(description=self.short_description)
         parser.add_argument('--skip-built', action='store_true')
+        parser.add_argument('--recompose', action='store_true')
         parser.add_argument('--start-at')
         parser.add_argument('--shell-on-failure', action='store_true')
         parser.add_argument('--debug-shell', action='store_true')
@@ -289,7 +290,9 @@ class OstbuildBuild(builtins.Builtin):
         self.patchdir = os.path.join(self.workdir, 'patches')
 
         components = self.manifest['components']
-        if len(args.components) == 0:
+        if args.recompose:
+            build_components = []
+        elif len(args.components) == 0:
             build_components = components
         else:
             build_components = []